<template>
  <div class="section-data">
    <div class="common-nft-grid">
      <div
        v-for="(item, idx) in 8"
        :key="idx"
        @click="jumpDetail(idx)"
        href="/nft-market/auction/0xd279d7e46f73961812c4853e065d0096a2657a71/39494/8604"
        class="nft-grid-item animated"
      >
        <div class="item-top">
          <div
            class="avatar"
            style="
              background: radial-gradient(
                rgb(255, 214, 179),
                rgb(243, 145, 61)
              );
            "
          >
            <div class="avatar-inner"></div>
            <div class="delay-items">
              <div class="delay-item"><!----><span class="num">00</span></div>
              <div class="delay-item">
                <span class="sep">:</span><span class="num">22</span>
              </div>
              <div class="delay-item">
                <span class="sep">:</span><span class="num">46</span>
              </div>
            </div>
          </div>
          <div class="title">
            <div class="title-text">#39494 JOJO IRON BOUNTY</div>
          </div>
        </div>
        <div class="common-item-separation column-mode"></div>
        <div class="item-bottom">
          <div class="title_value">
            Latest Bid
            <span> ≈ $1.5587</span>
          </div>
          <div class="value">
            <div class="value-text">18,905</div>
            <div class="value-token">
              <img
                src=""
              />
              JOJO
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    tabList: {
      type: Array,
      default: null,
    },
  },
  data: () => ({
    selected: 0,
    url: require("@/assets/images/blindBox/banner1.png"),
    list: [
      { name: "JOJO" },
      { name: "总质押数量" },
      { name: "我的质押数量" },
      { name: "总挖矿算力" },
    ],
  }),
  methods: {
    jumpDetail(idx) {
      this.$emit("onClick", idx);
    },
  },
};
</script>
<style  lang="scss" scoped>
.section-data {
  margin-top: -4px;
  position: relative;
  .common-nft-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0 -15px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .nft-grid-item {
    min-width: 230px;
    min-width: calc(25% - 30px);
    max-width: calc(33.33333% - 30px);
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin: 30px 15px 0;
    border-radius: 16px;
    color: #694f4e;
    background: #fff;
    -webkit-box-shadow: 0 10px 15px -3px rgb(0 0 0 / 3%),
      0 4px 6px -2px rgb(0 0 0 / 1%);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 3%), 0 4px 6px -2px rgb(0 0 0 / 1%);
    position: relative;
    border-radius: 32px;
    @media screen and (min-width: 300px) and (max-width: 960px) {
      margin: 15px 8px 0;
      max-width: calc(50% - 16px);
      min-width: 160px;
    }
    .item-top {
      padding-bottom: 2px;
      .avatar {
        position: relative;
        padding-bottom: 100%;
        height: 0;
        border-top-right-radius: 16px;
        border-top-left-radius: 16px;
        background-color: #adeeff;
        overflow: hidden;
        background: radial-gradient(rgb(255, 214, 179), rgb(243, 145, 61));
      }
      .avatar-inner {
        background-size: contain;
        background-position: 50%;
        background-repeat: no-repeat;
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        webkit-transition: -webkit-transform 0.3s ease;
        transition: -webkit-transform 0.3s ease;
        transition: transform 0.3s ease;
        transition: transform 0.3s ease, -webkit-transform 0.3s ease;
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: center;
        transform-origin: center;
        background-image: url(https://dl0d5jadwbp9c.cloudfront.net/cdn/bounty/jojo_iron_bounty.png);
      }
    }
    .delay-items {
      top: unset;
      bottom: 12px;
      right: 12px;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      position: absolute;
      .delay-item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        color: #fff;
        .num {
          -webkit-box-sizing: border-box;
          box-sizing: border-box;
          padding: 0 4px;
          min-width: 24px;
          font-size: 14px;
          font-weight: 700;
          height: 24px;
          background: rgba(0, 0, 0, 0.5);
          border-radius: 6px;
          -webkit-box-pack: center;
          -ms-flex-pack: center;
          justify-content: center;
          display: -webkit-box;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-align: center;
          -ms-flex-align: center;
          align-items: center;
          @media screen and (min-width: 300px) and (max-width: 960px) {
            min-width: 20px;
            font-size: 12px;
            font-weight: normal;
            height: 20px;
          }
        }
        .sep {
          margin: 0 3px;
          font-size: 14px;
        }
      }
    }
    .title {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      height: 68px;
      padding: 0 24px;
      @media screen and (min-width: 300px) and (max-width: 960px) {
        height: 50px;
        padding: 0 15px;
      }
      .title-text {
        font-size: 18px;
        line-height: 1.2;
        color: #431216;
        word-break: break-word;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        @media screen and (min-width: 300px) and (max-width: 960px) {
          font-size: 13px;
        }
      }
    }

    .column-mode {
      width: 2px;
      position: relative;
      background-image: url(./../../../assets/images/pool/icon-ticket-line-horizontal.svg);
      background-size: contain;
      background-position: 50%;
      background-repeat: repeat-x;
      height: 1px;
      width: unset;
    }
    .item-bottom {
      padding: 12px 24px 20px;
      @media screen and (min-width: 300px) and (max-width: 960px) {
        padding: 12px 16px 15px;
      }
      .title_value {
        display: -webkit-box;
        display: -ms-flexbox;
        padding-bottom: 10px;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        font-size: 14px;
        color: #694f4e;
        @media screen and (min-width: 300px) and (max-width: 960px) {
          font-size: 12px;
        }
      }
      .value {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        color: #431216;
        margin-top: 1px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        .value-text {
          font-size: 22px;
          font-weight: 700;
          @media screen and (min-width: 300px) and (max-width: 960px) {
            font-size: 15px;
          }
        }
        .value-token {
          display: -webkit-box;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-align: center;
          -ms-flex-align: center;
          align-items: center;
          font-size: 14px;
          @media screen and (min-width: 300px) and (max-width: 960px) {
            font-size: 12px;
          }
          img {
            width: 18px;
            height: 18px;
            margin-right: 4px;
            @media screen and (min-width: 300px) and (max-width: 960px) {
              width: 14px;
              height: 14px;
            }
          }
        }
      }
    }
  }
}
</style>